package com.zr.serviceImpl;

import java.sql.Connection;

import com.zr.dao.PasssqDaoljc;
import com.zr.daoImpl.PasssqDaoImplljc;
import com.zr.model.Course;
import com.zr.service.PasssqServiceljc;

public class PasssqServiceImplljc implements PasssqServiceljc{
	PasssqDaoljc p = new PasssqDaoImplljc();
	//往日志表中新增管理员处理申请日志 
	@Override
	public boolean insertBlog(int sid, String tname, String cname,String score, String zt,String sj, String newsj, String nr,Connection con) {
		return p.insertBlog(sid, tname, cname, score, zt, sj, newsj, nr, con);
	}
	
	//添加成绩
	@Override
	public boolean insertScore(int sid, int cid, String score,Connection con) {
		return p.insertScore(sid, cid, score, con);
	}
	
	//删除申请表中的申请数据
	@Override
	public boolean deleteSQ(int id,Connection con) {
		return p.deleteSQ(id, con);
	}
	//通过课程名找到课程id
	@Override
	public int findCidByCname(String cname) {
		return p.findCidByCname(cname);
	}

}
